package com.caldremch.d2demo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.caldremch.d2demo.bean.Student;
import com.caldremch.d2demo.component.DaggerFtAComponent;
import com.caldremch.d2demo.component.FtAComponent;

import javax.inject.Inject;

public class MainActivity extends AppCompatActivity {


    @Inject
    Student student;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        DaggerFtAComponent.builder().stuModule(new StuModule()).build().inject(this);

    }

    public void testClick(View view) {

        try {
            Log.e("tag", "stduent="+student.a);

        }catch (Exception e){
           e.printStackTrace();
        }

//        startActivity(new Intent(this, MVPActivity.class));
    }
}
